package com.yoomiito.app.ui.my.teamallowance

import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.yoomiito.app.R
import com.yoomiito.app.model.my.TeamAllowanceData

class TeamAllowanceAdapter(data: List<TeamAllowanceData>?) : BaseQuickAdapter<TeamAllowanceData, BaseViewHolder>(R.layout.item_money_detail_1, data) {

//    init {
//
//    }

    override fun convert(helper: BaseViewHolder?, item: TeamAllowanceData?) {
        helper?.getView<TextView>(R.id.desTv).let {
            it?.text = item?.bizName
//            it?.paint?.isFakeBoldText = helper?.layoutPosition == data.size - 1
        }
        helper?.setText(R.id.valueTv, item?.money)
        helper?.setGone(R.id.divLine, helper?.layoutPosition == data.size - 1)

    }
}